#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int n = 0;
	int max = 0;
	for (int i = 0; i < 10; i++)
	{
		scanf("%d", &n);
		if (max < n)
		{
			max = n;
		}
	}
	printf("%d", max);
	return 0;
}